package andrei.mower2.io.file.exceptions;

import andrei.mower2.main.i18n.MessageUtils;

@SuppressWarnings("serial")
public class UnreadableLineException extends Exception {

	public UnreadableLineException(long lineNumber, String message, Throwable cause) {
		super(MessageUtils.getMessage("warn.io.unreadableLine", lineNumber) + ": "+message, cause);
	}
	
	public UnreadableLineException(long lineNumber, String message) {
		super(MessageUtils.getMessage("warn.io.unreadableLine", lineNumber) + ": "+message);
	}
	
	public UnreadableLineException(long lineNumber, Throwable cause) {
		super(MessageUtils.getMessage("warn.io.unreadableLine"), cause);
	}
	
	public UnreadableLineException(long lineNumber) {
		super(MessageUtils.getMessage("warn.io.unreadableLine", lineNumber));
	}
}
